we might need to change the permissions, so do it instead of trying to
be smart
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
_initialPermissions = FileSystem::isFolderReadOnly(stdStrPath) ? OCC::FileSystem::FolderPermissions::ReadOnly : OCC::FileSystem::FolderPermissions::ReadWrite;
if (_initialPermissions != temporaryPermissions) {
_rollbackNeeded = true;
- FileSystem::setFolderPermissions(_path, temporaryPermissions);
}
+ FileSystem::setFolderPermissions(_path, temporaryPermissions);
}
catch (const std::filesystem::filesystem_error &e)
{